package com.yc.bos.service.impl;

import com.yc.bos.dao.IFunctionDao;
import com.yc.bos.dao.IRegionDao;
import com.yc.bos.model.Function;
import com.yc.bos.model.PageBean;
import com.yc.bos.model.Region;
import com.yc.bos.service.IFunctionService;
import com.yc.bos.service.IRegionService;
import com.yc.bos.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.List;

@Service
@Transactional
public class FunctionServiceImpl extends BaseServiceImpl<Function> implements IFunctionService {

    @Autowired
    private IFunctionDao functionDao;
    @Override
    public void pageQuery(PageBean<Function> pd) {
        functionDao.pageQuery(pd);
    }

    @Override
    public List<Function> findMenuByUserId(String id) {
        return functionDao.findMenuByUserId(id);
    }

    @Override
    public List<Function> findAllMenu() {
        return functionDao.findAllMenu();
    }

    @Override
    public void save(Function entity) {
        functionDao.save(entity);
    }

    @Override
    public void update(Function entity) {

    }

    @Override
    public void delete(Function entity) {

    }

    @Override
    public Function findById(Serializable id) {
        return null;
    }

    @Override
    public List<Function> findAll() {
        return functionDao.findAll();
    }
}
